package com.example.administrator.mobliesafe;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;

public class LostFoundActivity extends Activity {
    SharedPreferences sharedPreferences;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        sharedPreferences= getSharedPreferences("config",MODE_PRIVATE);
        boolean flag = sharedPreferences.getBoolean("isSetup",false);
        if (!flag){
            Intent intent = new Intent(LostFoundActivity.this,Setup1Activity.class);
            startActivity(intent);
            finish();
        }
        setContentView(R.layout.activity_lost_found);
    }
    public void reEnterSetupSafe(View view){
        Intent intent = new Intent(LostFoundActivity.this,Setup1Activity.class);
        startActivity(intent);
        finish();
    }

}
